﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SGTD.COM;
using SGTD.Entidades;

namespace SGTD.Controllers
{
    public class CorreoController : Controller
    {
        clsCorreo objCorreo = new clsCorreo();

        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult ListarCorreos()
        {
            clsGestorCorreo objGestor = new clsGestorCorreo();
            List<clsCorreo> listCorreos = new List<clsCorreo>();
            listCorreos = objGestor.ListarCorreo();

            ViewData["listacorreos"] = listCorreos;

            return View();
        }

        public ActionResult CorreoEntrada()
        {
            return View();
        }

        public ActionResult CorreoSalida()
        {
            return View();
        }

        public ActionResult CrearCorreo()
        {
            return View();
        }
    }
}